<?php

namespace App\Models\System;

use App\Models\BaseModel;

class SystemNoticeCompleteModel extends BaseModel
{
    protected $table = 'system_notice_complete';

    protected $appends = [
        'completeTime'
    ];

    public function systemNoticeRel()
    {
        return $this->hasOne(SystemNoticesModel::class, 'id', 'systemNoticeId');
    }

    public function getCompleteTimeAttribute()
    {
        return $this->createdAt->timestamp;
    }
}
